<?php
$this->headTitle($this->translate('Family list'));
//style
$this->headLink()
    ->appendStylesheet($this->STATIC_URL. '/themes/page.css');
$this->headStyle('
dl.icon_list dd{
    background-image:url('.$this->STATIC_URL.'/themes/icons/master.png);
}');
?>

<h2>
	<a href="<?php echo $this->url(array(
		'action'=> 'floor'))?>"><?php echo $this->translate('Back to family floor')?></a>
	<span><?php echo $this->translate('Family manage')?></span>
</h2>

<dl class="zend_form">
	<dt id="family-label">&nbsp;</dt>
	<dd id="family-element">
	<fieldset id="fieldset-family">
		<legend><?php echo $this->translate('Family list')?></legend>
		<dl class="icon_list">
		<dt style="background-image:url('<?php echo $this->STATIC_URL?>/themes/icons/people.png');">
			<h3>户口管理</h3>
			<h5 class="leaf"><?php echo $this->village->name .$this->group->name?>户列表</h5>
			<h5 class="leaf"></h5>
		</dt>
<?php if (count($this->paginator)) {
foreach ($this->paginator as $family) {
	echo '<dd>',
		'<h3><a href="'. $this->url(array(
				'controller'=> 'family',
				'action'=> 'browse',
				'pid'=> $family->pid)) .'">'. $family->name .'</a></h3>',
		'<h5 class="leaf">户编码：'. $family->fid .'</h5>',
		'<h5 class="leaf">入档时间：'. date( 'Y-m-d H:i:s', $family->gid ) .'</h5>',
	'</dd>';
}}?>
		<?php echo $this->paginationControl($this->paginator, 'Sliding', array('pagination.phtml','people')); ?>
		</dl>
	</fieldset>
	</dd>
</dl>